<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->title;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/load.js"></script>
<!--时间选择器-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/lang/cn_utf8.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-setup.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-blue.css" />
<!--colorbox-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/jquery.colorbox.js"></script>
<link href="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/colorbox2.css" rel="stylesheet" type="text/css"/>
<style>
.subject{white-space:nowrap;}
.dataLine td{ text-align:center;}
</style>
</head>

<body>
	<div id="main">
		<div id="topMenu">
			<div id="navigation">当前位置：分支协议列表</div>
			<div id="topOtherMenu">
			</div>
		</div>
		<div id="body">
			<div id="search">
			</div>
			<div id="content" style="padding-top:5px;">
				<form id="listForm" name="listForm" method="post" action="">
					<table class="table">
						<tr class="subject">
							<td>主协议版本号</td>
							<td>APP编号</td>
							<td>操作系统</td>
							<td>分支协议版本号</td>
							<td>当前分支状态</td>
							<td>备注</td>
							<td width="10%" class="checkBoxTd">操作</td>
						</tr>
<?php foreach($this->rows as $row) {?>
						<tr class="dataLine">
							<td><?php echo !empty($row['mainVersion']) ? $row['mainVersion'] : '&nbsp;';?></td>
							<td><?php echo !empty($row['productCode']) ? $row['productCode'] : '&nbsp;';?></td>
							<td><?php echo !empty($row['osName']) ? $row['osName'] : '&nbsp;';?></td>
							<td><?php echo !empty($row['childVersion']) ? $row['childVersion'] : '&nbsp;';?></td>
							<td><?php 
								if ($row['childStatus']==0){
									echo "<font color='red'>过期</font>";
								} else if ($row['childStatus']==1){
									echo "上线";
								} else if ($row['childStatus']==2){
									echo "开发";
								} else{
									echo "未知";
								}
							?></td>
							<td><?php echo !empty($row['note']) ? $row['note'] : '&nbsp;';?></td>
							<td width="10%" class="checkBoxTd"><a href="<?php echo $this->projectUrl(array('action'=>'list-show', 'id'=>$row['id'],'childVersion'=>$row['childVersion'], 'backUrl'=>urlencode($this->pageUrl))) ;?>">查看详情</a> </td>
						</tr>
<?php
}
?>
					</table>
<table class="controlTable">
						<tr>
							<td align="left">
							</td>
							 <td colspan="6" align="right" class="paginator"><?php echo $this->pageString;?></td>
					</tr>
					</table>
				</form>
			</div>
		</div>
</div>

</body>
</html>